package com.lmn.bus;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.bus.jackson.RemoteApplicationEventScan;
import org.springframework.cloud.context.config.annotation.RefreshScope;

@SpringBootApplication
@RefreshScope
@RemoteApplicationEventScan(basePackages = {"com.lmn.bus.rocketmq", "org.springframework.cloud.bus.event"})
public class BusRocketMQApplication {

    private static final Logger LOG = LoggerFactory.getLogger(BusRocketMQApplication.class);

    public static void main(String[] args) {
        SpringApplication.run(BusRocketMQApplication.class, args);
        LOG.info("启动成功");
    }

}
